package com.butterfly.rest.resource.restlet.exception;


import com.butterfly.rest.resource.restlet.status.AdxErrorCode;

public class AdXException extends RuntimeException {

	private AdxErrorCode errorCode;

	public AdXException(AdxErrorCode errorCode) {
        super(errorCode.getErrorMessage());
        this.errorCode = errorCode;
    }

	public AdxErrorCode getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(AdxErrorCode errorCode) {
		this.errorCode = errorCode;
	}
}
